package com.smartleanx.module.hrm.controller.admin.payroll.vo;

import com.smartleanx.framework.common.pojo.PageParam;
import com.smartleanx.framework.common.validation.InEnum;
import com.smartleanx.module.hrm.eums.payroll.PayrollStateEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Schema(description = "管理后台 - 薪资月份分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PayrollPageReqVO extends PageParam {

    @Schema(description = "年")
    private Integer year;

    @Schema(description = "月")
    private Integer month;

    @Schema(description = "状态")
    @InEnum(value = PayrollStateEnum.class, message = "状态格式非法")
    private List<Integer> states;
}